package com.terren.spider.db.dbsource;

public class DBSourceManager {
	/** ==================== DBSource key ==================== **/
	
	/** default spiderworkerDB **/
	public static final String spiderWorkerDBSource = "spiderWorkerDB";
	
	public static final String otherDBSource = "otherDB";
	public static final String newsdbDBSource = "newsdbDB";
	
	
	/**
	 * spiderWorkerDB 数据源
	 */
	public static void setSpiderWorkerDB(){
		DataSourceHandle.setDataSourceType(spiderWorkerDBSource);
	}
	
	/**
	 * other 数据源
	 */
	public static void setOtherDB(){
		DataSourceHandle.setDataSourceType(otherDBSource);
	}
	/**
	 * newsdb 数据源
	 */
	public static void setNewsdbDB(){
		DataSourceHandle.setDataSourceType(newsdbDBSource);
	}
	
	/**
	 * 将数据源改为默认的数据源
	 */
	public static void setDefaultDB(){
		setNewsdbDB();
	}
}
